<?php

namespace App\Models\Product;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use App\Models\Product\Product as ProductModel;

class Cart extends Model
{
    use HasFactory;

    protected $table = 'cart';

    protected $guarded = [];

    // 自动写入时间戳
    public $timestamps = false;

    public function product()
    {
        return $this->belongsTo(ProductModel::class,'proid','id');
    }
}
